package mypack.hunmoshi;

/**
 * 
 *  适配器 模式   -- 让 goose 具有 Quackable 行为
 * 
 * @author lwcui
 *
 */
public class GooseToDuckAnapt implements Quackable{

	private Goose goose;
	
	
	public GooseToDuckAnapt(Goose goose){
		this.goose = goose;
	}
	
	
	@Override
	public void quack() {
		goose.kk();
	}
	
	

}
